/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.hagopa.games.moneypool.utils;

/**
 *
 * @author Igor
 */
public enum LogActionTypeEnum {
    HANDSHAKE	        (100, "Handshake activity between client and server"),
    STARTGAME	        (200, "Start Game activity of Player"),
    GAMEFLOW            (300, "Game Started. Players actions inside the Game")
    ;
    private int idx;
    private String name = null;

    LogActionTypeEnum(int ind, String desc)
    {
        this.idx = ind;
        this.name = desc;
    }

    public static LogActionTypeEnum getEnum(int idx)
    {
		switch (idx){
                    case 100:
			return HANDSHAKE;
                    case 200:
			return STARTGAME;
                    case 300:
                        return GAMEFLOW;
                    default:
			return null;
                }
    }

    public int idx()
    {
	return this.idx;
    }
    public String getDescription()
    {
    	return this.name;
    }
}
